package com.ibeeking.found.cop.service.common.enums;

public enum GroupFriendsStatusEnum {
    STATUS_GROUP_FRIENDS_IN(0, "在群"),
    STATUS_GROUP_FRIENDS_OUT(1, " 退群"),;

    private Integer code;
    private String desc;

    GroupFriendsStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(Integer code) {
        for (GroupFriendsStatusEnum enumObj : values()) {
            if (enumObj.getCode().equals(code)) {
                return enumObj.getDesc();
            }
        }
        return null;
    }
}
